PATH![]() |
![]() ![]() |
Obtains the task ID of the currently-executing preemptive task
MPTaskID MPCurrentTaskID (void);
Returns the ID of the current preemptive task. If called from a cooperative task, this function returns an ID which is different than the ID of any preemptive task. Nonpreemptive processes may or may not have different task IDs for each application; future implementations of this API may behave differently in this regard.
Note that you can call this function from an interrupt handler.